package edu.whu.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.jeffreyning.mybatisplus.service.IMppService;
import edu.whu.demo.domain.Reminder;
import edu.whu.demo.exception.ReminderException;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2022-11-25
 */
public interface IReminderService extends IService<Reminder> {

    IPage<Reminder> getRemindersByActivityId(Long activityId,
                                             Integer pageNum,
                                             Integer pageSize);

    Reminder addReminder(Reminder reminder) throws ReminderException;

    void updateReminder(Reminder reminder) throws ReminderException;

    void deleteReminder(Long id) throws ReminderException;

    List<Reminder> getAll();
}
